package com.liujit.standard.basis.core.util;

import cn.hutool.core.util.IdUtil;

public class IdGenerator {

    /**
     * @description: 获取不包含特殊符号得uuid
     * @author: liujun
     * @create: 2021/3/24 6:02 下午
     **/
    public static String getUUID() {
        return IdUtil.simpleUUID();
    }

    /**
     * 获取 Snowflake 生成id
     *
     * @return
     */
    public static Long getId() {
        return IdUtil.getSnowflake(0, 0).nextId();
    }
}
